<div class="post">
	<div class="post_title">
		<h1 class="left">Spells</h1>
		<div class="post_date right"></div>
		<div class="clearer">&nbsp;</div>
	</div>
	<div class="post_body">
	<table style="margin: 0 auto;">
	<tr><td style="padding: 10px; border: 1px black solid;"><strong>Name</strong></td><td style="padding: 10px; border: 1px black solid;"><strong>Words</strong></td><td style="padding: 10px; border: 1px black solid;"><strong>Level req.</strong></td><td style="padding: 10px; border: 1px black solid;"><strong>Mana req.</strong></td><td style="padding: 10px; border: 1px black solid;"><strong>Vocation req.</strong></td><td style="padding: 10px; border: 1px black solid;"><strong>PACC req.</strong></td>
	{foreach table="$spells" index="i" value="spell"}
	{if @spell->type eq 1 or @spell->type eq 2}
	<tr>
		<td style="padding: 10px; border: 1px black solid; font-weight: bold;">{capitalize(@spell->name)}</td>
		<td style="padding: 10px; border: 1px black solid;">{@spell->words}</td>
		<td style="padding: 10px; border: 1px black solid;">{@spell->level} lvl.</td>
		<td style="padding: 10px; border: 1px black solid;">{@spell->mana}</td>
		<td style="padding: 10px; border: 1px black solid;">
		{foreach table="@spell->vocations" index="i" value="vocation"}
				{@vocation}<br /> 
		{foreachelse}
		All
		{/foreach}
		</td>
		<td style="padding: 10px; border: 1px black solid;">
		{if @spell->premium eq 1}
		Yes
		{/if}
		</td>
	</tr>
	{/if}
	{foreachelse}
		<tr>
			<td style="padding: 10px; border: 1px black solid;">
				<strong>There is no spells on that server.</strong>
			</td>
		</tr>
	{/foreach}
	</table>
	</div>
	<div class="post_bottom"></div>
</div>